-- GENERATED SPELL FOR [Feugen] --


function spell0_15930(pUnit, Event) --@Magnetic Pull,n/a--
pUnit:FullCastSpellOnTarget(54517,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15930', 0, 1)
end

function spell1_15930(pUnit, Event) --@Static Field,Self--
pUnit:FullCastSpellOnTarget(28135,pUnit)
pUnit:RegisterEvent('Sorts_15930', 574, 1)
end

function spell2_15930(pUnit, Event) --@Static Field,Self--
pUnit:FullCastSpellOnTarget(54528,pUnit)
pUnit:RegisterEvent('Sorts_15930', 558, 1)
end

function Sorts_15930(pUnit, Event)
local choix_sorts_15930 = math.random(0, 2)
if choix_sorts_15930 == 0 then
pUnit:RegisterEvent('spell0_15930', 1, 1)
end
if choix_sorts_15930 == 1 then
pUnit:RegisterEvent('spell1_15930', 1, 1)
end
if choix_sorts_15930 == 2 then
pUnit:RegisterEvent('spell2_15930', 1, 1)
end
end

function mob15930_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15930', math.random(1500, 3000), 1)
end

function mob15930_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15930_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15930_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15930, 1, 'mob15930_Action')
RegisterUnitEvent(15930, 2, 'mob15930_Leave')
RegisterUnitEvent(15930, 3, 'mob15930_Kill')
RegisterUnitEvent(15930, 4, 'mob15930_Die')
